<script setup>
import { provide, ref, onMounted } from "vue";

import Header from "@/pages/Header/Header.vue";
const isShow = ref(false);
const setIsShow = (value) => {
  isShow.value = value;
};
provide("dialogShow", { isShow, setIsShow });

onMounted(() => {
  myApi.sender();
  myApi.openDialog(setIsShow); //将setIsShow方法传递出去
});
</script>

<template>
  <Header></Header>
  <router-view></router-view>
</template>

<style lang="scss" scoped></style>
